package controller

import (
	"ez/apps/wms/auto/controller"
	"gitee.com/dreamwood/ez-go/ez"
)

type SummaryController struct {
	controller.SummaryAutoController
}

func init() {
	c := &SummaryController{}
	c.SetRouteParam("/wms", "/admin", "Summary")
	ez.CreateApi(c.AdminGet(), c.GetAction).SetRouterName("[wms]结存每日汇总_创建")
	ez.CreateApi(c.AdminList(), c.ListAction).SetRouterName("[wms]结存每日汇总_列表")
	ez.CreateApi(c.AdminSave(), c.SaveAction).SetRouterName("[wms]结存每日汇总_保存")
	ez.CreateApi(c.AdminCopy(), c.CopyAction).SetRouterName("[wms]结存每日汇总_复制")
	ez.CreateApi(c.AdminUpdate(), c.UpdateAction).SetRouterName("[wms]结存每日汇总_更新")
	ez.CreateApi(c.AdminChoice(), c.ChoiceAction).SetRouterName("[wms]结存每日汇总_选项")
	ez.CreateApi(c.AdminDelete(), c.DeleteAction).SetRouterName("[wms]结存每日汇总_删除")
	ez.CreateApi(c.AdminUnDelete(), c.UnDeleteAction).SetRouterName("[wms]结存每日汇总_恢复")
	ez.CreateApi(c.AdminDestroy(), c.DestroyAction).SetRouterName("[wms]结存每日汇总_销毁")
	ez.CreateApi(c.AdminUpdateMany(), c.UpdateManyAction).SetRouterName("[wms]结存每日汇总_更新_批量")
	ez.CreateApi(c.AdminDeleteMany(), c.DeleteManyAction).SetRouterName("[wms]结存每日汇总_删除_批量")
	ez.CreateApi(c.AdminDestroyMany(), c.DestroyManyAction).SetRouterName("[wms]结存每日汇总_销毁_批量")
}

//func (c SummaryController) AccessControl(session *ez.Session) { /* 在这里面重构 */ }
//func (c SummaryController) GetAction(session *ez.Session) { /* 在这里面重构 */ }
//func (c SummaryController) ListAction(session *ez.Session) { /* 在这里面重构 */ }
